home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Static Menus
- Sent: 7/10/96 7:16 AM
- Received: 7/10/96 2:31 PM
- From: Richard Rodseth, rodseth@apple.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >Is there any way to "lock down" the root part's menus in such a way that
- >the "active" part's menus are either not shown or appended to the root
- >part's menus.
- >
- >Or ... What is the best way to create a part that cannot be activated by
- >the user (like simple control parts).
-
- In theory, the root part itself can install its menu bar as the base menu
- bar, but that's not something that can be done without the cooperation of
- the root part.
-
- Parts activate themselves, so it's easy enough to build one that doesn't.
- In the case of ODF you have have to suppress default framework behavior.
- See Get/SetFocusSet in ODFButton (Part.cpp). Basically ODFButton keeps
- its own focus set which is empty unless the option key is down.
-
- Richard
-
-
- "It's no use prevaricating about the bush"
- - Wallace, in "The Wrong Trousers"
-
-